<%@ page import="your_car_status.Vehicle" %>
<!DOCTYPE html>
<html>
  <head>
    <meta name="layout" content="main">
  <g:set var="entityName" value="${message(code: 'vehicle.label', default: 'Vehicle')}" />
  <title><g:message code="default.edit.label" args="[entityName]" /></title>
</head>
<body>
  <br>
<g:link class="list" action="listVehicles">
  <div class="tabNoSelected">
    List Vehicles
  </div>
</g:link> 
<g:link class="list" action="edit" id="${Customer.id}">
  <div class="tabSelected">
    Edit My data
  </div>
</g:link>  

<g:link class="list" action="logout" controller="LogIn">
  <div class="tabNoSelected">Log out</div>
</g:link>
<hr>
<a href="#edit-vehicle" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
<div class="nav" role="navigation">
  <ul>
    <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
    <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
    <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
    <li><g:link class="list" action="logout" controller="LogIn">Cerrar sesion</g:link></li>
  </ul>
</div>
<div id="edit-vehicle" class="content scaffold-edit" role="main">
  <h1><g:message code="Edit Vehicle" /></h1>
  <g:if test="${flash.message}">
    <div class="message" role="status">${flash.message}</div>
  </g:if>
  <g:hasErrors bean="${vehicleInstance}">
    <ul class="errors" role="alert">
      <g:eachError bean="${vehicleInstance}" var="error">
        <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
      </g:eachError>
    </ul>
  </g:hasErrors>
  <g:form method="post" >
    <g:hiddenField name="id" value="${vehicleInstance?.id}" />
    <g:hiddenField name="version" value="${vehicleInstance?.version}" />
    <fieldset class="form">
      <g:render template="form"/>
    </fieldset>
    <fieldset class="buttons">
      <g:actionSubmit class="save" action="updateVehicle" value="${message(code: 'Update')}" />
      <g:actionSubmit class="delete" action="delete" value="${message(code: 'Delete')}" formnovalidate="" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
    </fieldset>
  </g:form>
</div>
</body>
</html>
